﻿using CgdataBase.WPF.Converters;
using System.Globalization;

namespace FolderCompare.Converters;

public class NameConverter : ConverterBase<NameConverter>
{
        public override object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            if (value is string str && str.IsContainValidText())
            {
                return Visibility.Visible;
            }

            return Visibility.Hidden;
        }
}